package com.good.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * jsonp跨域请求可以用
 * @author ieei
 *
 */
@Controller
public class Jsonp {
	@RequestMapping(value="goJsonp")
	public String goJsonp(){
		System.out.println("good");
		return "/jsonp";
	}
	@RequestMapping(value="json")
	@ResponseBody
	public String Json(){
		System.out.println("json");
		return "doSomething({name:'good',age:25})";
	}
	
}
